package com.day20.test2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {

    public static void main(String[] args) {
        ApplicationContext a=new ClassPathXmlApplicationContext("application.xml");

        father f=(father)a.getBean("father");

        f.test();
    }

}
